{// 选中父节点的模版}
<icy8:formItem label="上级节点" inline="1">
    <select name="pid">
        <option value="{$parent.id}">{$parent.title}</option>
    </select>
</icy8:formItem>

<icy8:formItem label="节点名称">
    <input type="text" name="title" class="layui-input" required lay-verify="required" placeholder="节点名称"
           value=""/>
</icy8:formItem>

<icy8:formItem label="URL地址" help="如果为树支节点可留空">
    <input type="text" name="name" class="layui-input" placeholder="URL地址"
           value="{$parent.name}"/>
</icy8:formItem>

<icy8:formItem label="节点图标" help="如果为菜单则会用于显示，编写图标样式即可，具体查看awsome-font官网">
    <input type="text" name="icon" class="layui-input" required lay-verify="required" placeholder="节点图标"
           value="fa "/>
</icy8:formItem>

<icy8:formItem inline="1" label="类型" help="">
    <select name="type" class="width-auto">
        <option value="1"
        <eq name="parent.type" value="1">selected</eq>
        >普通url</option>
        <option value="2"
        <eq name="parent.type" value="2">selected</eq>
        >系统菜单</option>
        <option value="3"
        <eq name="parent.type" value="3">selected</eq>
        >头部导航</option>
    </select>
</icy8:formItem>

<icy8:formItem label="所属模块" help="如果为全局验证，留空即可">
    <input type="text" name="module" class="layui-input" placeholder="节点所属的模块" value="{$parent.module}"/>
</icy8:formItem>

<icy8:formItem label="验证条件" help="用户的属性条件，如id=1，如果没有可留空">
    <input type="text" name="condition" class="layui-input" value="{$parent.condition}"/>
</icy8:formItem>

<icy8:formItem label="备注" help="如果没有可留空" item-class="layui-form-text">
    <textarea name="remark" class="layui-textarea"></textarea>
</icy8:formItem>

<icy8:formItem label="排序" help="倒序：数值越大越靠前">
    <input type="number" name="sort" class="layui-input" value="{$info.sort|default='99'}"/>
</icy8:formItem>